import request from '@/utils/request'
import { projectApiUrl } from '@/api/config'

/**
 * 获取当前登录用户所在指定标签的组织机构列表
 * @param parameter
 */
export function getCompany(params) {
  return request({
    url: '/ycloud-organization/orgs/queryCurrentUserOrgByCodes',
    method: 'post',
    data: params
  })
}
/**
 * 获取当前登录人分公司
 */
export function getCurrentUserBranchCom() {
  return request.get('/cscec-project-business/projects/current-user-branch-coms')
}
/**
 * 选择项目
 * @param parameter
 */
export function getProject(params) {
  return request({
    url: '/cscec-project-business/projects/user-branch-project',
    method: 'post',
    data: params
  })
}


/**
 * 选择审核通过的项目
 * @param parameter
 */
export function getAuditProject(params) {
  return request({
    url: projectApiUrl + '/projects/down-project',
    method: 'post',
    data: params
  })
}
/**
 * @description: 审批通过不需要权限的项目
 * @param {object} params
 * @return {void}
 */
export function getAuditAllProject(params) {
  return request({
    url: projectApiUrl + '/projects/down-all-project',
    method: 'post',
    data: params
  })
}
